<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>忘记密码</title>
    <link rel="shortcut icon" th:href="@{/images/favicon.ico}" />
    <link type="text/css" th:href="@{/css/css_x/findpword/css.css}" rel="stylesheet" />
</head>

<body>

  <div class="content">
   <div class="web-width">
     <div class="for-liucheng">
      <div class="liulist for-cur"></div>
      <div class="liulist for-cur"></div>
      <div class="liulist for-cur"></div>
      <div class="liulist"></div>
      <div class="liutextbox">
          <div class="liutext for-cur"><em>1</em><br /><strong>填写邮箱</strong></div>
       <div class="liutext for-cur"><em>2</em><br /><strong>验证身份</strong></div>
       <div class="liutext for-cur"><em>3</em><br /><strong>设置新密码</strong></div>
       <div class="liutext"><em>4</em><br /><strong>完成</strong></div>
      </div>
     </div><!--for-liucheng/-->
     <form method="post" th:action="@{/f/t/finpf}" class="forget-pwd" onsubmit="return check2pwd()">
       <dl>
        <dt>新密码：</dt>
        <dd><input type="password" name="pwds" id="input1"/></dd>
        <div class="clears"></div>
       </dl> 
       <dl>
        <dt>确认密码：</dt>
        <dd><input type="password" name="pwd" id="input2" /></dd>
        <div class="clears"></div>
       </dl> 
       <div class="subtijiao"><input type="submit" value="提交"/></div>
      </form><!--forget-pwd/-->
   </div><!--web-width/-->
  </div><!--content/-->
  <script th:inline="javascript">
      var contextPath = [[${#request.getContextPath()}]];
  </script>
  <script type="text/javascript">
      function check2pwd() {
         if (input1.value == "" || input1.value==null){
             alert("密码不能为空");
             return false;
         }

              if(input2.value != input1.value || input2.value ==null || input2.value=="") {
                  alert("两次输入密码不一致！");
                  return false;
              }

      }
  </script>
</body>
</html>
